{
+ "extends": "stylelint-config-wikimedia",
"rules": {
- "color-hex-case": [ "lower" ],
- "color-hex-length": [ "short" ],
- "color-named": [ "never" ],
- "color-no-invalid-hex": true,
+ "declaration-block-no-duplicate-properties": null,
+ "declaration-no-important": null,
- "declaration-bang-space-after": [ "never" ],
- "declaration-bang-space-before": [ "always" ],
- "declaration-colon-space-after": [ "always" ],
- "declaration-colon-space-before": [ "never" ],
+ "indentation": null,
- "font-family-name-quotes": [ "always-unless-keyword" ],
- "font-weight-notation": [ "named-where-possible" ],
+ "no-descending-specificity": null,
+ "no-duplicate-selectors": null,
- "function-calc-no-unspaced-operator": true,
- "function-comma-newline-after": "never-multi-line",
- "function-comma-newline-before": "never-multi-line",
- "function-comma-space-after": [ "always" ],
- "function-comma-space-before": [ "never" ],
- "function-parentheses-newline-inside": [ "never-multi-line" ],
- "function-parentheses-space-inside": [ "always" ],
- "function-url-quotes": [ "never" ],
- "function-whitespace-after": [ "always" ],
+ "number-leading-zero": null,
+
+ "selector-list-comma-newline-after": null,
+ "selector-no-id": null,
+ "selector-pseudo-class-parentheses-space-inside": null,
+ "selector-pseudo-element-colon-notation": null,
+
+ "string-quotes": null,
+
+ "value-keyword-case": null
}
}
options: {
syntax: 'less'
},
- src: '{resources/src/**,mw-config/**}/*.{css,less}'
+ src: '{resources/src,mw-config}/**/*.{css,less}'
},
watch: {
files: [
.arrowSteps li {
float: left;
- padding: 0px;
- margin: 0px;
- border: 0 none;
+ padding: 0;
+ margin: 0;
+ border: 0;
}
.arrowSteps li div {
top: 0;
left: 0;
width: 0;
- border: none;
+ border: 0;
z-index: 1099;
padding: 0;
margin: -1px 0 0 0;
}
.mw_metadata {
- border: none;
+ border: 0;
border-collapse: collapse;
}
}
html .thumbcaption {
- border: none;
+ border: 0;
text-align: left;
line-height: 1.4em;
padding: 3px;
}
html .thumbcaption {
- border: none;
+ border: 0;
line-height: 1.4em;
padding: 3px;
font-size: 94%;
}
img {
- border: none;
+ border: 0;
}
#toc,
#toc h2,
.toc h2 {
display: inline;
- border: none;
+ border: 0;
padding: 0;
font-size: 100%;
font-weight: bold;
}
.editExternally {
- border-style: solid;
- border-width: 1px;
- border-color: #808080;
+ border: 1px solid #808080;
background: #fff;
padding: 3px;
margin-top: 0.5em;
}
table.mw_metadata {
- border: none;
+ border: 0;
border-collapse: collapse;
}
table.mw_metadata td.spacer {
background: inherit;
- border-top: none;
- border-bottom: none;
+ border-width: 0 1px;
}
.visualClear {
}
div.multipageimagenavbox {
- border: solid 1px #c0c0c0;
+ border: 1px solid #c0c0c0;
padding: 4px;
margin: 1em;
background: #f0f0f0;
}
div.multipageimagenavbox div.thumb {
- border: none;
+ border: 0;
margin-left: 2em;
margin-right: 2em;
}
@supports (text-decoration: underline dotted) {
abbr[title],
.explain[title] {
- border-bottom: none;
+ border-bottom: 0;
text-decoration: underline dotted;
}
}
.catlinks li:first-child {
padding-left: 0.25em;
- border-left: none;
+ border-left: 0;
}
/* (bug 5346) make category redirects italic */
font-weight: bold;
display: inline;
margin: 0 .5em 0 0;
- border: none;
+ border: 0;
}
.errorbox {
-webkit-transform: rotate( @deg );
-moz-transform: rotate( @deg );
transform: rotate( @deg );
-}
\ No newline at end of file
+}
order: @order;
}
-
// Screen Reader Helper Mixin
.mixin-screen-reader-text() {
display: block;
#toc h2,
.toc h2 {
display: inline;
- border: none;
+ border: 0;
padding: 0;
font-size: 100%;
font-weight: bold;
}
html .thumbcaption {
- border: none;
+ border: 0;
line-height: 1.4em;
padding: 3px;
font-size: 94%;
/* Hide the caption for frameless and plain floated images */
figure[typeof~="mw:Image/Frameless"] > figcaption,
-figure[typeof~="mw:Image"] > figcaption { display: none }
+figure[typeof~="mw:Image"] > figcaption {
+ display: none;
+}
/* Inline Elements */
img {
- border: none;
+ border: 0;
vertical-align: middle;
}
h4,
h5,
h6 {
- border-bottom: none;
+ border-bottom: 0;
font-weight: bold;
}
}
form {
- border: none;
+ border: 0;
margin: 0;
}
.editOptions {
background-color: #f8f9fa;
border: 1px solid #c8ccd1;
- border-top: none;
+ border-top: 0;
padding: 1em 1em 1.5em 1em;
margin-bottom: 2em;
}
}
.mw-apisandbox-help-field:last-child {
- border-bottom: none;
+ border-bottom: 0;
}
.mw-apisandbox-optionalWidget {
height: 0;
}
-* html .interwiki-result { zoom: 1; } /* IE6 */
-*:first-child+html .iw-resultset { zoom: 1; } /* IE7 */
+* html .interwiki-result { /* IE6 */
+ zoom: 1;
+}
+*:first-child + html .iw-resultset { /* IE7 */
+ zoom: 1;
+}
/* padding each .iw-resultset section seperately.
This allows us greater flexibility in the design.
.iw-result__title,
.iw-result__content,
.iw-result__footer {
- padding-left: 0.85em;
- padding-right: 0.85em;
- padding-top: 0.25em;
- padding-bottom: 0.25em;
+ padding: 0.25em 0.85em;
}
/* definition titles appear inline,
}
/* mobile */
-@media only screen and ( max-width:768px ) {
+@media only screen and ( max-width: 768px ) {
#mw-interwiki-results {
width: 100%;
}
}
-@media only screen and ( max-width:600px ) {
- .iw-resultset {
+@media only screen and ( max-width: 600px ) {
+ .iw-resultset {
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
having to assign it as a button type. `.mw-ui-anchor` only changes the text color, and should not be used in combination
with other base classes, such as `.mw-ui-button`.
-
Markup:
<a href="#" class="mw-ui-anchor mw-ui-progressive">Progressive</a>
<a href="#" class="mw-ui-anchor mw-ui-destructive">Destructive</a>
&.mw-ui-icon-small:before {
background-size: 66.67% auto; // 66.67% of 24px equals 16px
}
-}
\ No newline at end of file
+}
&.mw-ui-destructive {
color: @colorDestructive;
}
-}
\ No newline at end of file
+}
.oo-ui-buttonElement-button {
width: 100%;
- border: 1px dotted rgba( 255, 255, 255, 0.0 );
+ border: 1px dotted rgba( 255, 255, 255, 0 );
.oo-ui-box-sizing( border-box );
}
font-family: inherit;
background-color: transparent;
color: inherit;
- border: none;
+ border: 0;
box-shadow: none;
text-align: center;
vertical-align: middle;
.mw-widget-calendarWidget-header .mw-widget-calendarWidget-labelButton {
margin: 0 auto;
display: block;
- width: @calendarWidth - 2*3em;
+ width: @calendarWidth - 2 * 3em;
.oo-ui-buttonElement-button {
- width: @calendarWidth - 2*3em;
+ width: @calendarWidth - 2 * 3em;
text-align: center;
}
}
}
.mw-widgets-stashedFileWidget-info {
- border: none;
+ border: 0;
background: none;
display: block;
height: 100%;
}
}
-
.mw-widgets-stashedFileWidget-empty {
.mw-widgets-stashedFileWidget-thumbnail-container {
text-align: center;
color: #555;
}
}
-}
\ No newline at end of file
+}
.mw-upload-bookletLayout-filePreview .oo-ui-progressBarWidget-bar {
height: 0.5em;
-}
\ No newline at end of file
+}
}
.apihelp-parameters dt:after {
- content: ':\A0'
+ content: ':\A0';
}
.apihelp-parameters dd {
padding: 0;
margin: 0;
background: none;
- border: none;
+ border: 0;
}
table {
* Diff rendering
*/
table.diff {
- border: none;
+ border: 0;
border-spacing: 4px;
margin: 0;
width: 100%;
/* new gallery stuff */
ul.mw-gallery-nolines li.gallerybox div.thumb {
background-color: transparent;
- border: none;
+ border: 0;
}
ul.mw-gallery-nolines li.gallerybox div.gallerytext {
ul.mw-gallery-packed-overlay li.gallerybox div.thumb,
ul.mw-gallery-packed-hover li.gallerybox div.thumb {
background-color: transparent;
- border: none;
+ border: 0;
}
ul.mw-gallery-packed li.gallerybox div.thumb img,
}
ul.mw-gallery-slideshow li.gallerybox div.thumb {
- border: none;
+ border: 0;
background: transparent;
}